project(ChatCinema)

cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -g)

include_directories(src/TcpServer 
                    src/HttpServer 
                    src
                    src/Services
                    src/utils
                    )
add_subdirectory(src)

add_executable(test_tcpserver test_tcpserver.cpp)
target_link_libraries(test_tcpserver tcp_server)

add_executable(test_httpserver test_httpserver.cpp)
target_link_libraries(test_httpserver tcp_server http_server)

add_executable(test_service test_service.cpp)
target_link_libraries(test_service 
                        services 
                        tcp_server 
                        http_server 
                        utils)

add_executable(test_timer test_timer.cpp)
target_link_libraries(test_timer 
                        services 
                        tcp_server 
                        http_server 
                        utils)
